package com.zhangwei.yueshijia.model;

import com.zhangwei.yueshijia.api.BaseSubscriber;
import com.zhangwei.yueshijia.api.RetrofitManager;
import com.zhangwei.yueshijia.bean.BaseBean;
import com.zhangwei.yueshijia.bean.special.VirtualData;

import java.util.Map;

import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

/**
 * Created by zhangwei on 2016/11/23.
 */

public class SpecialModel {

    public void getSpecialData(Map<String, String> params, BaseSubscriber<BaseBean<VirtualData>> subscriber) {
        RetrofitManager.getSingleton()
                .getApiService()
                .getSpecialProgramaData(params)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(subscriber);


    }


}
